package com.jkhan.demo.date_api;

import java.util.Calendar;
import java.util.Date;

public class Demo01 {

    public static void main(String[] args) {

        long now = System.currentTimeMillis();
        System.out.println("now = " + now);

        Date date1 = new Date(now);
        System.out.println("date1 = " + date1);

        Calendar calendar1 = Calendar.getInstance();
        System.out.println("calendar1 = " + calendar1.getTime().toString());
    }

}
